/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.WebIDE.ejb.sessions;

import java.util.List;
import javax.ejb.Remote;
import org.WebIDE.ejb.entities.GroupsResources;
import org.WebIDE.ejb.entities.Resources;
import org.WebIDE.ejb.sessions.exceptions.*;

/**
 *
 * @author huy
 */
@Remote
public interface ResourcesFacadeRemote {

    public void create(Resources resources) throws PreexistingEntityException, RollbackFailureException, Exception;

    public void edit(Resources resources) throws IllegalOrphanException, NonexistentEntityException, RollbackFailureException, Exception;

    void remove(Resources resources);

    Resources find(Object id);

    List<Resources> findAll();

    public Resources findResources(Integer id);

    public List<Resources> findResourcesEntities();

    public List<Resources> findResourcesEntities(int maxResults, int firstResult);
public void destroy(Integer id) throws IllegalOrphanException, NonexistentEntityException, RollbackFailureException, Exception;
    public int getResourcesCount();
}
